WCGQL\Helpers\Variation A

Total Complexity 61
Dependencies 7
Dependents 4
Total lines 335
Lines of code 255
Logical lines of code 140
Comment lines 5
Methods 18
Properties 0

Methods 18

Method Rating Maintainability Complexity Lines of code
translateAttributeValue()
S
55 7 19
getAvailableOptions()
S
53 5 22
get_variation()
S
58 5 16
getProductCartItemOptions()
S
54 4 22
search()
S
57 4 16
checkIfVariationValidForCurrentSelection()
S
61 4 12
prepareAvailableOptionsResponse()
S
52 3 25
baseAvailableOptionsStructure()
S
56 3 19
removeSelectedAttibutes()
S
62 4 10
getVariationPrice()
S
63 4 10
productVariationData()
S
54 2 21
setVariationAttributeValueInStockStatus()
S
64 3 9
createKeyValuePairsCoveringEncodingCases()
S
65 3 9
setInStockAsTrue()
S
63 3 9
textEncodingCases()
S
62 2 12
createOptionsEncodingCases()
S
63 2 10
getAllPossibleOptionsValues()
S
65 2 9
checkIfVariationMatchSelection()
S
71 1 5